package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.qijian.common.enums.ApprovalDescriptionEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * BOM开工令对象 main_bom_material_project
 *
 * @author qijian
 * @date 2022-05-17
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_bom_material_project")
public class BomMaterialProject extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long mainId;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long projectId;

    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty(value = "${column.columnComment}")
    private String projectMachineNo;

    @JsonSerialize(using= ToStringSerializer.class)
    private Long userId;

    @TableField(exist = false)
    private String projectNo;

    @TableField(exist = false)
    private String projectName;

    @TableField(exist = false)
    private String bomId;

}
